package com.sjd.dao;

import com.sjd.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserMapper {
    public List<User> getUserList();//查询所有用户信息

    public User getUserById(@Param("id") int id);//根据id查询用户信息

    public  User getUserByName(@Param("name") String name);//根据name查询用户信息

    public int  addUser(User user);//增加用户

    public int  modifyUser(User user);//修改用户

    public int  deleteUserById(@Param("id") int id);//根据id删除用户

}
